<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<isperp:processProcesser processId="${model.processId }"></isperp:processProcesser>

<div class="header">
	<h3>入库信息</h3>
</div>
<table class=" form-table">
	<tr>
		<td class="td1">入库编号：</td>
		<td class="td2">${model.code }</td>
		<td class="td1">入库日期：</td>
		<td class="td2"><fmt:formatDate value="${model.instockDate}"
				pattern="yyyy-MM-dd" />
		</td>
	</tr>
	<tr>
		<td class="td1">检测：</td>
		<td class="td2">${model.sptcheck }</td>
		<td class="td1">责任人：</td>
		<td class="td2">${model.linkman }</td>
	</tr>

	<tr>
		<td class="td1">入库类型：</td>
		<td class="td2" colspan="3">${model.inType }</td>
	</tr>
	<tr>
		<td class="td1">描述：</td>
		<td class="td2" colspan="3">${model.memo }</td>
	</tr>
	<tr>
		<td class="td1">填表人：</td>
		<td class="td2" colspan="3">${model.creatorName }</td>
	</tr>
</table>
<div class="header">
	<h3>采购备件项列表</h3>
</div>
<isperp:grid
	url="sparepart/sparepartInDetail/listBySparepartInId?sparepartInId=${model.id }"
	gridId="sparepartInDetailGrid" showPager="false" showToolbar="false"
	showSearchbar="false" cusDialogSize="big" cusFormatterActions="true">

	<jsp:body>
		<isperp:column name="id" title="id" hidden="true"></isperp:column>
		<isperp:column name="spt_code" title="编号" width="80">
		</isperp:column>
		<isperp:column name="treenode_name_path" title="备件分类" width="100">
		</isperp:column>
		<isperp:column name="spt_name" title="备件名称" width="150">
		</isperp:column>
		<isperp:column name="spt_model" title="规格型号" width="100">
		</isperp:column>
		<isperp:column name="spt_unit" title="单位" width="60">
		</isperp:column>
		<isperp:column name="quantity" title="数量" width="120">   
		</isperp:column>
		<isperp:column name="price" title="单价" width="120">   
		</isperp:column>
		<isperp:column name="memo" title="备注" width="120">   
		</isperp:column>
		
	</jsp:body>
</isperp:grid>


<isperp:buttonList>
	<isperp:processButtons processKey="sparepartInProcess" viewOnly="true"
		processId="${model.processId }" businessKey="${model.id }"></isperp:processButtons>
</isperp:buttonList>

